package com.xinling.modules.user.mapper;

import com.xinling.modules.user.model.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    
    User findByUsername(@Param("username") String username);

    User findByEmail(@Param("email") String email);

    User findById(@Param("id") Long id);

    int insert(User user);

    int updateUserInfo(User user);

    int updatePassword(@Param("id") Long id, @Param("password") String password);
} 